$(function(){
	var myChart = echarts.init(document.getElementById("showEcharts"));
	var legendData = '${legendData}';
	var xAxisData = '${xAxisData}';
	var data1 = '${data1}';
	var data2 = '${data2}';
	var data3 = '${data3}';
	var data4 = '${data4}';
	
	
	var option = {
		tooltip : {
	        trigger: 'axis',
	        axisPointer : {             /*坐标轴指示器，坐标轴触发有效*/
	            type : 'line'        /*默认为直线，可选为：'line' | 'shadow'*/
	        }
	    },
		legend:{
			data:["杜集区","相山区","烈山区","濉溪县"]
	    	//data:legendData
		},
		xAxis:{
			data:["1月","2月", "3月", "4月", "5月", "6月","7月","8月", "9月", "10月", "11月", "12月"]
			//data:xAxisData
		},
		yAxis:{},
		series:[{
			//data1
			name:"杜集区",
			type:"line",
			data:[5, 20, 36, 10, 10, 20,5, 20, 36, 10, 10, 20]
			
		},{
			//data2
			name:"相山区",
			type:"line",
			data:[7, 36, 10, 10, 20,5, 20, 36, 10, 11, 20, 80]
		},{
			//data3
			name:"烈山区",
			type:"line",
			data:[22, 55, 25, 10, 42, 20,11, 20, 36, 23, 10, 17]
			
		},{
			//data4
			name:"濉溪县",
			type:"line",
			data:[7, 36, 44, 47, 20,21, 20, 35, 10, 10, 20,80]
		}]
	};
	myChart.setOption(option);
	/*容器大小自适应*/
	window.onresize =  myChart.resize;
});	
	